import request from '@/axios/requestZd'
// 发送登录注册验证码-h5
export function sendCode (data,tokenInfo) {
    return request({
      url: '/sms/sendCode',
      method: 'post',
      data,
      tokenInfo
    })
}
// 注册和登录接口-h5
export function loginAccount (data,tokenInfo) {
    return request({
      url: '/login/account',
      method: 'post',
      data,
      tokenInfo
    })
}
// 用户退出-h5
export function loginLogout(data,tokenInfo) {
    return request({
      url: '/login/logout',
      method: 'post',
      data,
      tokenInfo
    })
}
// 上传图片-h5
export function uploadImage(data,tokenInfo) {
    return request({
      url: '/upload/image',
      method: 'post',
      data,
      tokenInfo
    })
}
// ocr 工商营业执照
export function ocrCommonThird(data,tokenInfo) {
    return request({
      url: '/user/ocrCommonThird',
      method: 'post',
      data,
      tokenInfo
    })
}
// 我的历史报告列表-h5
export function myCompanyReportLists (data,tokenInfo) {
  return request({
    url: '/companyReport/myCompanyReportLists',
    method: 'get',
    params:data,
    tokenInfo
  })
}
// 下单并获取税务授权链接-h5
export function createOrderAndGetAuthorizationUrl(data,tokenInfo) {
    return request({
      url: '/companyReport/createOrderAndGetAuthorizationUrl',
      method: 'post',
      data,
      tokenInfo
    })
}
// 获取查询价-h5
export function getQueryPrice (data,tokenInfo) {
  return request({
    url: '/companyReport/getQueryPrice',
    method: 'get',
    params:data,
    tokenInfo
  })
}
// 获取税务授权状态和报告状态-h5
export function getAuthorizationAndReportStatus (data,tokenInfo) {
  return request({
    url: '/companyReport/getAuthorizationAndReportStatus',
    method: 'get',
    params:data,
    tokenInfo
  })
}
// 企业报告详情-h5
export function companyReportDetail (data,tokenInfo) {
  return request({
    url: '/companyReport/detail',
    method: 'get',
    params:data,
    tokenInfo
  })
}
// 获取企业报告分享链接-h5
export function getShareLink (data,tokenInfo) {
  return request({
    url: '/companyReport/getShareLink',
    method: 'get',
    params:data,
    tokenInfo
  })
}
// 企业报告分享页详情-h5
export function shareDetail (data,tokenInfo) {
  return request({
    url: '/companyReport/shareDetail',
    method: 'get',
    params:data,
    tokenInfo
  })
}
// 企业报告预支付-h5
export function prePayReportOrder(data,tokenInfo) {
    return request({
      url: '/pay/prePayReportOrder',
      method: 'post',
      data,
      tokenInfo
    })
}
// 获取企业报告支付状态-h5
export function payStatusReportOrder (data,tokenInfo) {
  return request({
    url: '/pay/payStatusReportOrder',
    method: 'get',
    params:data,
    tokenInfo
  })
}
// 获取支付页时候的价格
export function getReportOrderPrice (data,tokenInfo) {
  return request({
    url: '/pay/getReportOrderPrice',
    method: 'get',
    params:data,
    tokenInfo
  })
}